﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Idte.Communication.Media
{
    public enum PhoneType
    {
        General = 0
    }

    [Table("Phone")]
    public class Phone : MediaIdentification
    {
        public static implicit operator Phone(string number)
        {
            return new Phone { Number=number };
        }
        public string AreaCode { get; set; }
        public string Number { get; set; }
        [DefaultValue(PhoneType.General)]
        public PhoneType Type { get; set; }
    }
}
